{extend name="common/base" }

{block name="content"}
<div class="am-g">
	<div class="am-u-sm-12">
		<form class="am-form ajax-form" method="post" action="{:url('edit', ['id' => $_id])}">
		
			{$widget->form('text', ['title' => '登录名称', 'name' => 'user_name', 'value' => $_record['user_name']])}
			
			{$widget->form('text', ['title' => '用户昵称', 'name' => 'user_nick', 'value' => $_record['user_nick']])}
			
			{$widget->form('text', ['title' => '登录密码', 'type' => 'password', 'type' => 'password', 'name' => 'user_passwd', 'value' => ''])}
			
			{$widget->form('text', ['title' => '重复密码', 'type' => 'password', 'type' => 'password', 'name' => 'user_passwd_confirm', 'value' => ''])}
			
			{$widget->form('select', ['title' => '所属群组', 'name' => 'user_gids[]', 'value' => $_record['user_gids'], 'list' => $select_user_group, 'attr' => 'multiple'])}
			
			{$widget->form('select', ['title' => '用户状态', 'name' => 'user_status', 'value' => $_record['user_status'], 'list' => $select_user_status])}
			
			{$widget->form('submit', ['title' => '用户操作'])}
			
		</form>
	</div>
</div>
{/block}